# 统计当前程序运行次数

#
# f = open('./files/new.txt','r',encoding='utf-8')
# b = f.read()
# print(b)
# c = int(b)+1
# f = open('./files/new.txt','w',encoding='utf-8')
# f.write(str(c))
# f.close()
# 保存打印自己的余额
# def fun1():
#     d = int(input('请输入存钱金额：'))
#     f = open('./files/new.txt', 'r', encoding='utf-8')
#     b = f.read()
# #     print('余额', b, '存入1000')
# #     c = int(b) + d
# #     print(c)
# #     f = open('./files/new.txt', 'w', encoding='utf-8')
# #     f.write(str(c))
# # #     f.close()
# # # def func2():
# #     d = int(input('请输入取钱金额：'))
# #     f = open('./files/new.txt', 'r', encoding='utf-8')
# #     b = f.read()
# #     print('余额', b, '消耗1000')
# #     c = int(b) - d
# #     print(c)
# #     f = open('./files/new.txt', 'w', encoding='utf-8')
# #     f.write(str(c))
# #     f.close()
# # while True:
# #     value = int(input('1.存钱 2.取钱:'))
# #     if value ==1:
# #        fun1()
# #     elif value ==2:
# #        func2()
# # f = open('./files/new.txt','r',encoding='utf-8')
# # b = f.read()
# # print(b)
# # c = int(b)+1000
# # print(c)
# # f = open('./files/new.txt','w',encoding='utf-8')
# # f.write(str(c))
# # f.close()
#
#
# # class Error(Exception):
# #     def __str__(self):
# #         return '错误手机号码格式错误！！'
# #
# #
# # def func1():
# #     tel = input('请输入手机号码（11位）：')
# #     if len(tel) != 11:
# #         raise Error
# #     else:
# #         print('输入正确')
# #
# #
# # a = func1()
#
# f= open('files/wenben.txt','r',encoding='utf-8')
# while True:
#     a = f.readline()
#     if a:
#         print(a)
#     else:
#         break

import requests

# response = requests.get('https://www.baidu.com/img/bd_logo1.png?where=super')
f= open('baidulogo.png','rb')

print(f.read())
f.close()

TP = open('baidu2.jpg','wb')
TP.write(\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x02\x1c\x00\x00\x01\x02\x08\x03\x00\x00\x00\x82\x14\xfe8\x00\x00)
TP.close()